<?php function is_valid_email($email) {
  		$result = TRUE;
  		if(!preg_match("/^[_\.0-9a-zA-Z-]+@([0-9a-zA-Z][0-9a-zA-Z-]+\.)+[a-zA-Z]{2,6}$/i", $email))  {
    		$result = FALSE;
  		}
  		return $result;
	  }
?>
